﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace ServiceJob
{
    public class JobClassReturn
    {
        public static string DEFAULT_GROUP = "Job_Default_Group";
        public static string DEFAULT_Trigger_GROUP = "Trigger_Default_Group";
        public static Type jobClassReturn(string jobClass)
        {
            switch (jobClass)
            {
                case "IJobWrite": return typeof(ServiceJob.Jobs.IJobWrite);
                case "IJobDeleteExpired": return typeof(ServiceJob.Jobs.IJobDeleteExpired);
                case "IJobEmailSend": return typeof(ServiceJob.Jobs.IJobEmailSend);
                default: return null; 
            }
        }
    }
}
